//
// Created by wkm on 2023-12-11.
//

#ifndef MYSYSTEMCLEARNING_FF_TB_H
#define MYSYSTEMCLEARNING_FF_TB_H

#include "systemc.h"
#include "ff_define.h"

SC_MODULE(ff_tb) {
    sc_in<bool> clk;
    sc_in<sc_uint<SIZE>> data_out;
    sc_out<bool> reset;
    sc_out<sc_uint<SIZE>> data;

    void test();

    void check();

    SC_CTOR(ff_tb) {
        SC_THREAD(test);
        sensitive_pos << clk;
        SC_METHOD(check);
        sensitive << data_out;
    }
};

#endif //MYSYSTEMCLEARNING_FF_TB_H
